let path = require('path')
function resolve(dir) {
  console.log(__dirname)
  return path.join(__dirname, dir)
}
module.exports = {
  //使调用的资源在当前目录
  publicPath: './',
  //less使用函数
  css: {
    loaderOptions: { 
      less: {
        javascriptEnabled: true
      }
    }
  },
  chainWebpack: (config)=>{
    //修改文件引入自定义路径
    config.resolve.alias
      .set('@', resolve('src')) 
    }
}